package com.system.business.service;

import com.system.business.domain.DailyTrainCarriage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.system.business.req.DailyTrainCarriageQueryReq;
import com.system.business.req.DailyTrainCarriageSaveReq;
import com.system.business.resp.DailyTrainCarriageQueryResp;
import com.system.common.resp.PageResp;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

/**
* @author Admin
* @description 针对表【daily_train_carriage(每日车厢)】的数据库操作Service
* @createDate 2024-03-21 15:02:15
*/
public interface DailyTrainCarriageService extends IService<DailyTrainCarriage> {

    PageResp<DailyTrainCarriageQueryResp> queryList(DailyTrainCarriageQueryReq req);

    void save(DailyTrainCarriageSaveReq req);

    @Transactional
    void genDaily(Date date, String trainCode);

    List<DailyTrainCarriage> selectBySeatType(Date date, String trainCode, String seatType);
}
